package org.huhuiyu.easyui.dao.impl;

import java.util.List;
import org.huhuiyu.easyui.enity.Dtreemenu;
import org.huhuiyu.easyui.dao.DtreemenuDAO;
import org.springframework.stereotype.Service;

@Service
public class DtreemenuDAOImpl extends BasicDAO implements DtreemenuDAO {

	public DtreemenuDAOImpl() {
	}
	
	@Override
	public void deleteDtreemenu(Dtreemenu dtreemenu) throws Exception {
		super.deleteEntity(dtreemenu);
	}

	@Override
	public List<Dtreemenu> queryAllDtreemenu() throws Exception {
		return super.queryAllEntity(Dtreemenu.class);
	}

	@Override
	public Dtreemenu queryDtreemenuByKey(Dtreemenu dtreemenu) throws Exception {
		return super.queryEntityByKey(dtreemenu.getMid(), Dtreemenu.class);
	}

	@Override
	public void saveDtreemenu(Dtreemenu dtreemenu) throws Exception {
		super.saveEntity(dtreemenu);
	}

	@Override
	public void updateDtreemenu(Dtreemenu dtreemenu) throws Exception {
		super.updateEntity(dtreemenu);
	}	
}